﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>操作</title>
    <script src="../../Scripts/easyUI15/jquery.min.js" type="text/javascript"></script>
    <script src="../../Scripts/easyUI15/jquery.easyui.min.js" type="text/javascript"></script>
    <link href="../../Scripts/easyUI15/themes/icon-15.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/easyUI15/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="../../Comm/JScript.js" type="text/javascript"></script>
    <script src="../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../Scripts/config.js" type="text/javascript"></script>
</head>
<body>
  
    <script type="text/javascript">

        $(function () {

            var fk_node = GetQueryString("FK_Node");
            var fk_flow = GetQueryString("FK_Flow");
            var workid = GetQueryString("WorkID");
            var fid = GetQueryString("FID");

            OpenFrm(workid, fk_node, fk_flow);
            return;

            $.ajax({
                type: 'post',
                async: true,
                url: Handler + "?DoType=FrmGuide_Init&FK_Node=" + fk_node + "&FK_Flow=" + fk_flow + "&WorkID=" + workid + "&FID=" + fid + "&m=" + Math.random(),
                dataType: 'html',
                success: function (data) {

                    alert(data);


                    alert(data);

                }
            });
        });

        /* 打开表单. */
        function OpenFrm(workid, nodeID, flowNo) {

            var workid = GetQueryString("WorkID");
            var nodeID = GetQueryString("FK_Node");
            var flowNo = GetQueryString("FK_Flow");

            //执行催办.
            $.ajax({
                type: 'post',
                async: true,
                url: Handler + "?DoType=Runing_OpenFrm&FK_Node=" + nodeID + "&FK_Flow=" + flowNo + "&WorkID=" + workid + "&m=" + Math.random(),
                dataType: 'html',
                success: function (data) {

                    if (data.indexOf('err@') == 0) {
                        alert(data);
                        return;
                    }

                    if (data.indexOf('url@') == 0) {
                        data = data.replace('url@', '');

                        data = "../." + data;

                        window.location.href = data;
                        //WinOpen(data);
                        return;
                    }
                    alert(data);
                }
            });
        }

    </script>
</body>
</html>
